<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'sort.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<style type="text/css">
.sort {
	background-color: #AFC8F5;
	width: 100%;
}
</style>
	</head>

	<body>
		<div style="float: left; width: 150;">
			<table cellpadding="0" cellspacing="0" width="100%">
				<tr align="center">
					<td>
						供需信息类别
					</td>
				</tr>
				<tr align="center">
					<td>
						<a href="gongxu/gx_getcallList.shtml?sortId=0&txtname=">全部</a>
					</td>
				</tr>
				<s:iterator value="#request.cate" id="cate" status="cate_start">
					<tr id="category" width="100%">
						<td align="center">
							<s:property value="categoryName" />
						</td>
					</tr>
					<tr width="100%">
						<td>
							<table width="100%">
								<s:if test="categoryId==1">
									<s:iterator value="#request.sortList1" id="sort"
										status="sort_start">
										<tr class="sort" id="sort"
											onmouseover="this.style.backgroundColor='#9999FF'"
											onmouseout="this.style.backgroundColor='#AFC8F5'">
											<td>
												<a
													href="gongxu/gx_getcallList.shtml?sortId=<s:property value="sortId"/>"><s:property
														value="callSortName" />
												</a>
											</td>
										</tr>
									</s:iterator>
								</s:if>
								<s:if test="categoryId==2">
									<s:iterator value="#request.sortList2" id="sort"
										status="sort_start">
										<tr class="sort" id="sort"
											onmouseover="this.style.backgroundColor='#9999FF'"
											onmouseout="this.style.backgroundColor='#AFC8F5'">
											<td>
												<a
													href="gongxu/gx_getcallList.shtml?sortId=<s:property value="sortId"/>"><s:property
														value="callSortName" />
												</a>
											</td>
										</tr>
									</s:iterator>
								</s:if>
								<s:if test="categoryId==3">
									<s:iterator value="#request.sortList3" id="sort"
										status="sort_start">
										<tr class="sort" id="sort"
											onmouseover="this.style.backgroundColor='#9999FF'"
											onmouseout="this.style.backgroundColor='#AFC8F5'">
											<td>
												<a
													href="gongxu/gx_getcallList.shtml?sortId=<s:property value="sortId"/>"><s:property
														value="callSortName" />
												</a>
											</td>
										</tr>
									</s:iterator>
								</s:if>
								<s:if test="categoryId>==4">
									<s:iterator value="#request.sortList4" id="sort"
										status="sort_start">
										<tr class="sort" id="sort"
											onmouseover="this.style.backgroundColor='#9999FF'"
											onmouseout="this.style.backgroundColor='#AFC8F5'">
											<td>
												<a
													href="gongxu/gx_getcallList.shtml?sortId=<s:property value="sortId"/>"><s:property
														value="callSortName" />
												</a>
											</td>
										</tr>
									</s:iterator>
								</s:if>
								<s:if test="categoryId==5">
									<s:iterator value="#request.sortList5" id="sort"
										status="sort_start">
										<tr class="sort" id="sort"
											onmouseover="this.style.backgroundColor='#9999FF'"
											onmouseout="this.style.backgroundColor='#AFC8F5'">
											<td>
												<a
													href="gongxu/gx_getcallList.shtml?sortId=<s:property value="sortId"/>"><s:property
														value="callSortName" />
												</a>
											</td>
										</tr>
									</s:iterator>
								</s:if>
							</table>
						</td>
					<tr>
				</s:iterator>
				<tr>
					<td></td>
				</tr>
			</table>
		</div>
	</body>
</html>
